package com.heima.behavior.service;

import com.heima.model.behavior.dtos.LikesBehaviorDto;
import com.heima.model.behavior.dtos.ReadBehaviorDto;
import com.heima.model.behavior.dtos.UnLikesBehaviorDto;

/**
 * 用户行为Service
 *
 * @author Fuqiang
 * @since :2023-04-09
 */
public interface BehaviorService {


    /**
     * 文章查看次数统计
     *
     * @param dto
     * @return
     */
    void readBehavior(ReadBehaviorDto dto);

    /**
     * 不喜欢或者取消不喜欢
     *
     * @param dto
     * @return
     */
    void unlikesBehavior(UnLikesBehaviorDto dto);

    /**
     * 用户点赞或取消点赞
     *
     * @param dto
     */
    void likesBehavior(LikesBehaviorDto dto);
}
